import { IViewItem } from "@/model/frame/IViewItem";
import ViewItemConfigs from "@/frame-config/view-item";

export class ViewItems {
  private static _inistant: ViewItems;
  groups: IViewItem[] = [];

  private constructor() {
    this.groups = ViewItemConfigs;
  }

  public static instance(): ViewItems {
    if (!ViewItems._inistant) {
      ViewItems._inistant = new ViewItems();
    }
    return ViewItems._inistant;
  }
}
